import axios from '../util/axios'

export function getGuangGaoList(params={}){
  return axios({
    url:'/admin/guanggao',
    method:'GET',
    params
  })
}

export function deleteGuangGao(params={}){
  return axios({
    url:'/admin/guanggao',
    method:'DELETE',
    params
  })
}

export function addGuangGaoData(params={}){
  return axios({
    url:'/admin/guanggao/add',
    method:'POST',
    data:params
  })
}

export function editGuangGaoData(params={}){
  return axios({
    url:'/admin/guanggao/edit',
    method:'POST',
    data:params
  })
}
export function changeShow(params={}){
  return axios({
    url:'/admin/guanggao/switchShow',
    method:'PUT',
    params
  })
}
export function changeShort(params={}){
  return axios({
    url:'/admin/guanggao/changeShort',
    method:'PUT',
    params
  })
}
